#define GPJ2CON		*((volatile unsigned long *)0xE0200280)
#define GPJ2DATA	*((volatile unsigned long *)0xE0200284)

void delay(int r0)
{
	volatile unsigned int count = r0;
	while(count --)
	{
	}
}

void led_blink(void)
{
	GPJ2CON = 0x00001111;
	
	while(1)
	{
		GPJ2DATA = 0x0;
		delay(0x100000);
		GPJ2DATA = 0xf;
		delay(0x100000);
	}
}